package com.yfp.group.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 企业用户
 * @TableName enterprise_user
 */
@TableName(value ="enterprise")
@Data
public class Enterprise implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "id")
    private Long id;

    /**
     * 企业名称
     */
    @Schema(description = "企业名称")
    private String enterpriseName;

    /**
     * 营业执照
     */
    @Schema(description = "营业执照")
    private String businessLicense;

    /**
     * 联系人
     */
    @Schema(description = "联系人")
    private String contacts;

    /**
     * 联系人手机号码
     */
    @Schema(description = "联系人手机号码")
    private String contactsMobile;

    /**
     * 保证金支付方式1微信2其他方式
     */
    @Schema(description = "保证金支付方式1微信2其他方式")
    private Integer payWay;

    /**
     * 支付金额
     */
    @Schema(description = "支付金额")
    private BigDecimal payMoney;

    /**
     * 支付订单号
     */
    @Schema(description = "支付订单号")
    private String orderSn;

    /**
     * 支付状态1待支付2已支付3已退款
     */
    @Schema(description = "支付状态1待支付2已支付3已退款")
    private Integer payStatus;

    /**
     * 状态0待审核1审核未通过2审核通过
     */
    @Schema(description = "状态0待审核1审核未通过2审核通过")
    private Integer status;

    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Long userId;

    /**
     * 审核用户
     */
    @Schema(description = "审核用户")
    private Long auditUserId;

    /**
     * 审核时间
     */
    @Schema(description = "审核时间")
    private Date auditTime;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    private Date updateTime;

    /**
     * 修改用户
     */
    @Schema(description = "修改用户")
    private Long updateUserId;

    /**
     * 余额
     */
    @Schema(description = "余额")
    private BigDecimal balance;

    /**
     * 详细地址
     */
    @Schema(description = "详细地址")
    private String site;

    /**
     * 企业类型  1公司 2酒店
     */
    @Schema(description = "企业类型  1公司 2酒店")
    private Integer type;

    /**
     * 设备id
     */
    @Schema(description = "设备id")
    private String machineId;

    /**
     * 省市区
     */
    @Schema(description = "省市区")
    private String province;

    /**
     * openId
     */
    @Schema(description = "openId")
    private String openId;

    /**
     * unionId
     */
    @Schema(description = "unionId")
    private String unionId;

    /**
     * 支付凭证
     */
    @Schema(description = "支付凭证")
    private String voucher;

    /**
     * 微信支付订单号
     */
    @Schema(description = "微信支付订单号")
    private String transactionId;

    /**
     * 设备名称
     */
    @Schema(description = "设备名称")
    @TableField(exist = false)
    private String machineName;

    /**
     * 设备类型
     */
    @Schema(description = "设备类型")
    @TableField(exist = false)
    private Integer machineType;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}